package com.macro.mall.tiny.modules.bms.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 公共配置表
 */
@Getter
@Setter
@TableName("common_config")
@Schema(description = "Config对象 - 公共配置表")
public class Config implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "唯一key名称")
    @TableField("`key`")
    private String key;

    @Schema(description = "内容")
    @TableField("`value`")
    private String value;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Integer createdAt;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Integer updatedAt;

    @Schema(description = "删除标志 0-正常 1-删除")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer delFlag = 0;


}